﻿@model BlogKickStart.Models.User
@{
	ViewBag.Title = "EditUser";
	Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>EditUser</h2>

<script src="@Url.Content("~/Scripts/jquery-1.5.1.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
	@Html.ValidationSummary(true)
	<fieldset>
		<legend>User</legend>
		@Html.HiddenFor(model => model.UserID)
		<table>
			<tr>
				<td>
					<div class="editor-label">
						@Html.LabelFor(model => model.FirstNM)<span>: </span>
					</div>
				</td>
				<td>
					<div class="editor-field">
						@Html.EditorFor(model => model.FirstNM)
						@Html.ValidationMessageFor(model => model.FirstNM)
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="editor-label">
						@Html.LabelFor(model => model.LastNM)<span>: </span>
					</div>
				</td>
				<td>
					<div class="editor-field">
						@Html.EditorFor(model => model.LastNM)
						@Html.ValidationMessageFor(model => model.LastNM)
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="editor-label">
						@Html.LabelFor(model => model.Birthday)<span>: </span>
					</div>
				</td>
				<td>
					<div class="editor-field">
						@Html.EditorFor(model => model.Birthday)
						@Html.ValidationMessageFor(model => model.Birthday)
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="editor-label">
						@Html.LabelFor(model => model.CreateDate)<span>: </span>
					</div>
				</td>
				<td>
					<div class="editor-field">
						@Html.EditorFor(model => model.CreateDate)
						@Html.ValidationMessageFor(model => model.CreateDate)
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="editor-label">
						@Html.LabelFor(model => model.BlogID)<span>: </span>
					</div>
				</td>
				<td>
					<div class="editor-field">
						@Html.EditorFor(model => model.BlogID)
						@Html.ValidationMessageFor(model => model.BlogID)
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="editor-label">
						@Html.LabelFor(model => model.Pass)<span>: </span>
					</div>
				</td>
				<td>
					<div class="editor-field">
						@Html.EditorFor(model => model.Pass)
						@Html.ValidationMessageFor(model => model.Pass)
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="editor-label">
						@Html.LabelFor(model => model.UserName)<span>: </span>
					</div>
				</td>
				<td>
					<div class="editor-field">
						@Html.EditorFor(model => model.UserName)
						@Html.ValidationMessageFor(model => model.UserName)
					</div>
				</td>
			</tr>
		</table>
		<p>
			<input type="submit" value="Save" />
		</p>
	</fieldset>
}
<div>
	@Html.ActionLink("Back to List", "Index")
</div>
